package cn.school.educational.dao;

import cn.school.educational.entity.HomeworkComments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HomeworkCommentsDao extends BaseMapper<HomeworkComments> {

    List<HomeworkComments> findreplyDetails(@Param("pid")String pid);

    /**
     * 查询作业的全部评论
     * @param workId
     * @return
     */
    List<HomeworkComments> findHomeworkAllComments(@Param("workId")String workId);

}
